﻿using BrnMall.Manager.Domain.Log;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BrnMall.Manager.Manager.Log
{
    /// <summary>
    /// 系统模块-日志记录
    /// </summary>
    public class LogManager
    {
        /// <summary>
        /// 添加一条轻量级日志
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static bool Add(Logs model)
        {
            object obj = null;
            using (var db = new QDMallDatabase())
            {
                obj = db.Insert(model);
            }
            return obj != null ? true : false;
        }
    }
}
